home *** CD-ROM | disk | FTP | other *** search
-
- FTIME(3) UNIX Programmer's Manual FTIME(3)
-
- NNAAMMEE
- ffttiimmee - get date and time
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
- ##iinncclluuddee <<ssyyss//ttiimmeebb..hh>>
-
- _i_n_t
- ffttiimmee(_s_t_r_u_c_t _t_i_m_e_b _*_t_p)
-
- DDEESSCCRRIIPPTTIIOONN
- TThhiiss iinntteerrffaaccee iiss oobbssoolleetteedd bbyy gettimeofday((22)).. IItt iiss aavvaaiillaabbllee ffrroomm tthhee
- ccoommppaattiibbiilliittyy lliibbrraarryy,, lliibbccoommppaatt..
-
- The ffttiimmee() routine fills in a structure pointed to by its argument, as
- defined by <_s_y_s_/_t_i_m_e_b_._h>:
-
- /*
- * Structure returned by ftime system call
- */
- struct timeb
- {
- time_t time;
- unsigned short millitm;
- short timezone;
- short dstflag;
- };
-
- The structure contains the time since the epoch in seconds, up to 1000
- milliseconds of more-precise interval, the local time zone (measured in
- minutes of time westward from Greenwich), and a flag that, if nonzero,
- indicates that Daylight Saving time applies locally during the appropri-
- ate part of the year.
-
- SSEEEE AALLSSOO
- gettimeofday(2), settimeofday(2), time(2), ctime(3)
-
- HHIISSTTOORRYY
- The ffttiimmee function appeared in 4.2BSD.
-
- 4th Berkeley Distribution June 4, 1993 1
-